package com.dnjn.mes.biz.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dnjn.mes.biz.domain.MesRecordBeat;
import com.dnjn.mes.biz.domain.MesRecordCapacity;
import com.dnjn.mes.biz.mapper.MesRecordBeatMapper;
import com.dnjn.mes.biz.service.IMesRecordBeatService;
import org.springframework.stereotype.Service;

import java.time.LocalTime;
import java.util.List;

/**
 * <p>
 * 节拍表 服务实现类
 * </p>
 *
 * @author Amber
 * @since 2023-07-26
 */
@Service
public class MesRecordBeatServiceImpl extends ServiceImpl<MesRecordBeatMapper, MesRecordBeat> implements IMesRecordBeatService {

    @Override
    public List<MesRecordBeat> getNightRecordBeatChart(Long equipmentId) {
        return baseMapper.getNightRecordBeatChart(equipmentId);
    }

    @Override
    public List<MesRecordBeat> getEarlyRecordBeatChart(Long equipmentId) {
        return baseMapper.getEarlyRecordBeatChart(equipmentId);
    }

    @Override
    public List<MesRecordBeat> getTrendsRecordBeatChart(long equipmentId, LocalTime startTime, LocalTime endTime, String startLocalDateTime, String endLocalDateTime) {
        return baseMapper.getTrendsRecordBeatChart(equipmentId,startTime,endTime,startLocalDateTime,endLocalDateTime);
    }

}
